package com.bcu.cn.onlineexamsystem.Repository;

import com.bcu.cn.onlineexamsystem.user.entity.Course;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseRepository extends JpaRepository<Course, String> {
    // 根据教师ID查询课程列表
    List<Course> findByTeacherId(String teacherId);
}